get /vms
List Managed VMs (getManagedVms)
Lists the Velostrata managed VMs.
Consumes
This API call consumes the following media types via the Content-Type request header:
- application/json
Return type
ManagedVmDescription
target (optional) |
CloudVmInfo
|
||||||||||||||||
origin (optional) |
OriginDescription Origin Virtual Machine Description
|
||||||||||||||||
stateInfo (optional) |
VmStateDescription
|
||||||||||||||||
operationLinks (optional) |
OperationLink List of Links to CE Operations
|
Example data
Content-Type: application/json
[
{
"cloudExtension": {
"value": "vm-1",
"_type": "CloudExtensionId"
},
"cloudInstanceState": "None",
"edgeNode": "NodeA",
"id": {
"value": "vm-1",
"_type": "VmId"
},
"instanceUuid": "123e4567-e89b-12d3-a456-426655440000",
"migrationState": "None",
"runMode": "Normal",
"isSpot": false,
"state": "Unmanaged",
"activeTasks": [
{
"value": "vm-1",
"_type": "TaskId"
}
],
"uncommittedWrites": 0,
"uncommittedWritesLastSync": "2017-06-14T23:37:17.653Z",
"storagePolicy": "Writeback",
"vmImporter": {
"instanceId": "i-123456789",
"managedVmId": {
"value": "vm-1",
"_type": "VmId"
},
"status": "Creating",
"_type": "VmImporter"
},
"vmExporter": {
"instanceId": "i-123456789",
"managedVmId": {
"value": "vm-1",
"_type": "VmId"
},
"status": "Creating",
"_type": "VmExporter"
},
"OperationLinks" : [ {
"rel: "start","
"href: "/velostrata/api/v35/vms/vm-1/operations/start"
"httpVerb: "POST"
},
{
"rel: "stop","
"href: "/velostrata/api/vms/vm-1/operations/stop"
"httpVerb: "POST"
},
{
"rel: "return","
"href: "/velostrata/api/v35/vms/vm-1/operations/return"
"httpVerb: "POST"
},
{
"rel: "reboot","
"href: "/velostrata/api/v35/vms/vm-1/operations/reboot"
"httpVerb: "POST"
},
{
"rel: "allowedTasks","
"href: "/velostrata/api/v35/vms/vm-1/allowedTasks"
"httpVerb: "POST"
} ]
}
]
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
- application/json
Responses
200
OK